const styleObj = {
    color: 'red'
}

const showTitle = false;


/**
 * 样式处理
 * @constructor
 */
function StyleProcessing() {
    return (
        <div className="StyleProcessing">
            <div style={{color: 'green'}}>this is a div</div>
            <div style={styleObj}>this is a div</div>

            <div className={showTitle ? "title" : ""}>this is a div</div>

        </div>
    )
}

export default StyleProcessing;